<?php
include("../conn/conn.php");
header("content-type:text/html;charset=utf-8");
$name=$_POST[name];
$id=$_POST[id];
$shi='是';
$sql="update tb_ydxt set whether='$shi' where identity='$id'";
	if(mysqli_query($link,$sql)){
		echo("<script>alert('入住成功！');window.location.href='ht.php';</script>");
		}else{
			echo("<script>alert('无此预定记录！');window.location.href='rz.php';</script>");
			}
?>